package com.xfatm.util.reflect;

public class ReflectExample {
    public static void main(String[] args){
        A obj=new A();
        obj.setB("aa");
        try {
            ReflectUtils.fullNullField(obj,"a");
            ReflectUtils.fullNullField(obj,"b");
            System.out.println(obj.getA()+","+obj.getB());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static class A{
        private String a;
        private String b;

        public String getB() {
            return b;
        }

        public void setB(String b) {
            this.b = b;
        }

        public String getA() {
            return a;
        }

        public void setA(String a) {
            this.a = a;
        }
    }
}
